package cn.iocoder.yudao.module.aiposter.controller.app.material.vo;

import cn.iocoder.yudao.module.aiposter.dal.dataobject.material.MaterialTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "用户 APP - 素材资源新增/修改 Request VO")
@Data
public class AppMaterialSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1600")
    private Long id;

    @Schema(description = "名称", example = "我的背景图")
    private String name;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "类型不能为空")
    private MaterialTypeEnum type;

    @Schema(description = "资源值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "资源值不能为空")
    private String value;

    @Schema(description = "宽度", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer width;

    @Schema(description = "高度", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer height;

}